<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2021/3/15
  Time: 19:18
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<html>
<head>
    <title>物品查询</title>
    <%@include file="head.jsp"%>
    <link rel="stylesheet" href="/layui/css/layui.css" media="all">
    <script src="/layui/layui.js"></script>
    <link rel="stylesheet" href="/layui/layuiadmin/template.css" media="all">

</head>
<style>
    body{background: #f2f2f2;}
</style>
<body>
<div class="layui-main" style="text-align: center">
    <button onclick="fabu()" class="layui-btn layui-btn-normal" value="发布">丢失物品发布</button>
</div>

<form class="layui-form" action="${pageContext.request.contextPath}/applysearch.do">
    <div class="layui-form-item">
        <label class="layui-form-label">拾取物品</label>
        <div class="layui-input-block">
            <input style="width: 500px" type="text" name="content"  lay-verify="required" placeholder="请输入丢失物品名称" autocomplete="off" class="layui-input">
            <input class="layui-btn layui-btn-normal" type="submit" value="查询"/>

        </div>
    </div>
    <div class="layui-fluid layadmin-maillist-fluid">
        <div class="layui-row layui-col-space15">
            <c:forEach var="Apply" items="${LoseApplyAll}" varStatus="status" >
                <div class="layui-col-md4 layui-col-sm6">
                    <div class="layadmin-contact-box" >
                        <div class="layui-col-md4 layui-col-sm6">
                            <a href="javascript:;">
                                <div class="layadmin-text-center">
                                    <img src="/layui/images/face/60.gif">
                                    <div class="layadmin-maillist-img layadmin-font-blod">拾取到的物品</div>
                                </div>
                            </a>
                        </div>

                        <div class="layui-col-md8 layadmin-padding-left20 layui-col-sm6">
                            <a href="javascript:;">
                                <h3 class="layadmin-title">
                                    <strong>${Apply.applyName}</strong>
                                </h3>
                                <p class="layadmin-textimg">
                                    <i class="layui-icon layui-icon-location"></i>
                                        地点：${Apply.applyAddress}
                                </p>
                            </a>
                            <div class="layadmin-address">
                                <a href="javascript:;">
                                    <%--<strong>我爱学习</strong>--%>
                                    <br>
                                    物品描述 : ${Apply.applyExplain}
                                    <br>
                                    拾取人信息：
                                    <br>
                                    姓名：${Apply.user.userName}
                                    <br>
                                    住址：${Apply.user.userAddress}
                                    <br>
                                    <addr title="phone">Tel:</addr>
                                    ${Apply.user.userPhone}
                                </a>
                            </div>
                        </div>
                    </div>
                </div>
            </c:forEach>
        </div>
    </div>
</form>

</body>
</html>
<script>
    function fabu(){
        window.location.href="/jsp/addgood.jsp"
    }
</script>
